//
//  AdvertisingVM.m
//  HTP
//
//  Created by admin on 15/11/18.
//  Copyright © 2015年 nit. All rights reserved.
//

#import "AdvertisingVM.h"

@implementation AdvertisingVM
-(void)getAdvertisings:(NSString *)type{
    tns1_getAdvertisingByAdtype *getAdversting = [[tns1_getAdvertisingByAdtype alloc] init] ;
    getAdversting.adType = type;
    [WSDLNetWork shareInstance:^interfaceSoapBindingResponse *(interfaceSoapBinding *binding) {
        return [binding getAdvertisingByAdtypeUsingParameters:getAdversting headerElements:nil];
    } withResult:^(NSDictionary *message) {
        [self fetchResult:message];
    } throwError:^(NSError *error) {
        [self fetchError];
    }];
}
@end
